package 如何初始化数组;

public class 数组反转7 {
	
	public static void main(String[] args) {
		int [] a = {1,4,2,6,7,5};
		for (int i = 0,j = a.length - 1; i < a.length / 2; i++,j--) {
		    int temp = a[j];
		    a[j] = a[i];
		    a[i] = temp;
		}
		for (int i : a) {
		    System.err.print(i + ",");
		}
    }
}
